import request from '@/utils/request'

export function addFaq(tbfaq) {
  return request({
    url: `http://localhost:7000/customer/customer/addFaq/`,
    method: 'post',
    data: tbfaq,
  })
}

export function getFeedbackList(pageNum, pageSize) {
  return request({
    url: `http://localhost:7000/customer/customer/getFeedbackList/${pageNum}/${pageSize}`,
    method: 'post',
  })
}

export function changesFeedbackStatus(feedback) {
  return request({
    url: `http://localhost:7000/customer/customer/changesFeedbackStatus/`,
    method: 'post',
    data: feedback,
  })
}

export function updateQuestions(faq) {
  return request({
    url: `http://localhost:7000/customer/customer/updateQuestions/`,
    method: 'post',
    data: faq,
  })
}

export function deleteFaq(faq) {
  return request({
    url: `http://localhost:7000/customer/customer/deleteFaq/`,
    method: 'post',
    data: faq,
  })
}

export function getConsultList(pageNum, pageSize) {
  return request({
    url: `http://localhost:7000/customer/customer/getConsultList/${pageNum}/${pageSize}`,
    method: 'post',
  })
}
